package com.company.common;

/**
 * Created by tu on 2017/5/27.
 */
public class Constants {

  /**
   * redis 版本
   *
   * @since 2.1.0
   */
  public static String REDIS_KEY_VERSION = "V2:";
  /**
   * compaines redis
   */
  public static String REDIS_KEY_COMPANIES_PREFIX = REDIS_KEY_VERSION + "COMPANIES:";
  /**
   * 评论redis key comments:companyId:query.toString()
   */
  public static String REDIS_KEY_COMMENTS_PREFIX = REDIS_KEY_VERSION + "COMMENTS:";

  public static String REDIS_KEY_BANNERS_PREFIX = REDIS_KEY_VERSION + "BANNERS:";
  /**
   * useragent 缓存
   */
  public static String REDIS_KEY_USER_AGENT_PREFIX = REDIS_KEY_VERSION + "USER_AGENT:";
  /**
   * useragent 次数 key
   */
  public static String REDIS_KEY_USER_AGENT_COUNT_PREFIX = REDIS_KEY_VERSION + "USER_AGENT:COUNT:";
  /**
   * 过期时间，图片验证码
   */
  public static int REDIS_EXTIME_CAPTCHA_IMAGE = 60;

  /**
   * 过期时间-3600s
   */
  public static int REDIS_EXTIME_SECONDS = 3600;

  /**
   * 盐值-图片验证码
   */
  public static String SALT_CAPTCHA_IMAGE = REDIS_KEY_VERSION + "captcha_image_salt";
}
